package models

import (
	"0411zk/common/initialize"
	"fmt"
)

func TableMigrate() {
	err := initialize.DB.AutoMigrate(&User{}, &Coupon{}, &UserCoupon{}, &Course{}, &StudyPlan{}, &CourseOrder{})
	if err != nil {
		fmt.Println("数据表迁移失败")
		return
	} else {
		fmt.Println("数据表迁移成功")
	}
}
